package com.woniu.car.parameter;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import java.util.Date;
@Data
public class CouponSearchParameter {
   
    @Min(value=0,message = "id不可能为负数")
    @ApiModelProperty(value = "优惠券id",example="0")
    private Integer couponId;
    @ApiModelProperty(value = "优惠券编号")
    private String couponNo;
    @Min(value=0,message = "id不可能为负数")
    @ApiModelProperty(value = "种类类型",example="0")
    private Integer type;
    @Future(message = "你怎么可能给过去的优惠券啊是不是傻?")
    @ApiModelProperty(value = "优惠券开启时间")
    private Date startTime;
    @Future(message = "你怎么可能给过去的优惠券啊是不是傻?")
    @ApiModelProperty(value = "优惠券结束时间")
    private Date endTime;
    @Min(value=0,message = "状态不可能为负数")
    @ApiModelProperty(value = "优惠券名称",example = "0")
    private String status;
}
